<!--
- @founder   IT柏拉图, https: //weibo.com/itprato
- @author    DedeCMS团队
- @copyright Copyright (c) 2007 - 2021, 上海卓卓网络科技有限公司 (DesDev, Inc.)
--->
<html>
<head>
<meta charset="{dede:global.cfg_soft_lang/}" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>数据库管理 - 数据还原</title>
<meta name="copyright" content="2007-2021 DedeCMS, 上海卓卓网络科技有限公司 (DesDev, Inc.)" />
<link rel="icon" href="/favicon.ico" />
<!-- CSS FILES -->
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/pkg/uikit/css/uikit.min.css" />
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/css/manage.dede.css">
</head>
<body>
<!-- 列表头部 -->
<div id="Table_Header_202X2W2X1X292F" class="uk-card uk-card-small uk-card-default" uk-sticky="bottom: #offset">
<div id="Header_1W2T2S2T1V252B" class="uk-card-header">
<div class="uk-grid uk-grid-small uk-text-small">
<span><ul class="uk-breadcrumb"><li><a href="sys_data.php"><span>数据库管理</span></a></li><li><span>数据还原</span></li></ul></span>
</div>
<!-- 搜索表单 -->
<ul class="uk-navbar-nav dede-card-navbar" uk-navbar >
<li style="margin-right: 12px;"><a href="sys_data.php" class="uk-button uk-button-default uk-button-small uk-flex-inline ">数据库备份</a></li>
<li style="margin-right: 12px;"><a href="sys_sql_query.php?dopost=opimizeAll&token=<?php echo $_SESSION['token']; ?>" class="uk-button uk-button-default uk-button-small uk-flex-inline ">整库优化</a></li>
<li style="margin-right: 12px;"><a href="sys_sql_query.php?dopost=repairAll&token=<?php echo $_SESSION['token']; ?>" class="uk-button uk-button-default uk-button-small uk-flex-inline ">整库修复</a></li>
</ul>
<!-- /搜索表单 -->
</div>
<!-- 表头显示部分 -->
<table id="dede-table-toolbar" class="uk-table uk-table-middle uk-table-divider uk-table-striped uk-margin-remove">
<thead>
<tr>
<td width="5%"></td>
<td width="16%">表名</td>
<td width="5%">ID</td>
<td width="12%">时间</td>
<td>文件名</td>
</tr>
</thead>
</table>
<!-- /表头显示部分 -->
</div>
<!-- /列表头部 -->
<!-- 列表主体 -->
<div id="Table_Body_1X2V2U2V1W272D" class="uk-card uk-card-small uk-card-default" style="top: -51;">
<div class="uk-card-body uk-overflow-auto" grid>
<div class="uk-child-width-1-1">
<div class="uk-overflow-auto">
<!-- 表头隐藏部分，用于固定表结构宽度 -->
<table class="uk-table uk-table-hover uk-table-middle uk-table-divider uk-table-striped uk-margin-remove">
<thead>
<tr>
<td width="5%"></td>
<td width="16%">表名</td>
<td width="5%">ID</td>
<td width="12%">时间</td>
<td>文件名</td>
</tr>
</thead>
<!-- /表头隐藏部分 -->
<tbody>
<!-- 内容列表 -->
<?php foreach ($filelists as $file): ?>
<?php $t = tableinfo($file);?>
<tr>
<td><input type="checkbox" class="uk-checkbox dede-checkbox" value="<?=$file?>" checked/></td>
<td><?=$t[0];?></td>
<td><?=$t[1];?></td>
<td><?=date('Y-m-d H:i:s', $t[2]);?></td>
<td><?=$file?></td>
</tr>
<?php endforeach; ?>
<?php if (!empty($structfile)) :?>
<?php $s = tableinfo($structfile);?>
<tr>
<td><input type="checkbox" class="uk-checkbox dede-checkbox" value="<?=$structfile?>" checked/></td>
<td>还原表结构信息</td>
<td><?=$t[1]?></td>
<td><?=date('Y-m-d H:i:s', $t[2]);?></td>
<td><?=$structfile?></td>
</tr>
<?php endif;?>
<!-- /内容列表 -->
</tbody>
<!-- 批量操作 -->
<thead>
<tr>
<td><input type="checkbox" id="select-all" class="uk-checkbox" checked/></td>
<td height="36" colspan="8">
<a href="#" onclick="DedeCMS_JSCODE_Version_Checked_Action('sys_data_done.php?dopost=redat&bakfiles=')" class="uk-button uk-button-default uk-button-small">还原数据</a>
</td>
</tr>
</thead>
<!-- /批量操作 -->
</table>
</div>
</div>
</div>
</div>
<!-- /列表主体 -->
<!-- 列表底部 -->
<div class="bar-bottom uk-flex uk-light uk-flex-right">
<div class="uk-button-group" style="margin-left: 50px;">
</div>
<div class="e1e02">Copyright &copy; 2007-2021 <a href='http://www.dedecms.com' target='_blank'><u>DedeCMS</u></a>, 上海卓卓网络科技有限公司 (DesDev, Inc.)</div>
</div>
<!-- 列表底部 -->
<!-- JS FILES -->
<script src="{dede:global.cfg_assets_dir/}/pkg/uikit/js/uikit.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/uikit/js/uikit-icons.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/jquery/jquery.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/js/dede.manage.min.js"></script>
<!-- / JS FILES -->
</body>
</html>
